from django.urls import path
from . import views

app_name = 'media'

urlpatterns = [
    # FilePond endpoints
    path('upload/', views.TemporaryFileUploadView.as_view(http_method_names=['post', 'delete'])),
    path('upload/<path:id>', views.TemporaryFileUploadView.as_view(http_method_names=['get', 'patch', 'head'])),
    # path('load/<str:file_id>/', views.TemporaryFileUploadView.as_view(), name='filepond-load'),
    
    path('public/', views.PublicFileListView.as_view(), name='public'),
    
    path('raw/<uuid:pk>', views.RawFileView.as_view(), name='raw')
]
